#!/usr/bin/env python
# -*- coding:utf-8 -*-

__author__ = "zhanglu"

class A(object):
    def __init__(self,name):
        self.name = name
    def __str__(self):
        return 'name is %s' % self.name
    def __repr__(self):
        return 'repr is %s' % self.name
    def __call__(self):
        print 'call %s' % self.name

s = A('zhang')
s
# repr is zhang
print s
# name is zhang
s()
# call zhang
